package com.sinosoft.vaccinetoai.dao.po.business;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName dg_user_chat_record
 * 记录用户聊天数据详细信息
 */
@Getter
@Setter
@ToString
@Table(name = "dg_user_chat_record")
public class ChatRecord implements Serializable {
    /**
     * 主键ID
     */
    @Id
    @Column(name = "ID")
    private Long id;

    /**
     * 对话链ID（历史查找）
     */
    @Column(name = "CHAIN_RECORD_ID")
    private Long chainRecordId;

    /**
     * 用户ID
     */
    @Column(name = "USER_ID")
    private Long userId;

    /**
     * 聊天内容
     */
    @Column(name = "TEXT")
    private String text;

    /**
     * 聊天图片
     */
    @Column(name = "IMAGES")
    private String images;

    /**
     * 上下文options
     */
    @Column(name = "CONVERSATION_OPTIONS")
    private String conversationOptions;

    /**
     * 聊天类型（0 普通主页AL聊天 1 检验结果解读 2 医学结果解读）
     */
    @Column(name = "TYPE")
    private Integer type;

    /**
     * 请求体options
     */
    @Column(name = "REQUEST_OPTIONS")
    private String requestOptions;

    /**
     * 确认是用户还是回答true代表用户false代表回答
     */
    @Column(name = "INVERSION")
    private Boolean inversion;


    /**
     * 额外信息
     */
    @Column(name = "EXTRA")
    private String extra;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "UPDATE_TIME")
    private Date updateTime;


}